package com.koron.housing.excel;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author jzp
 * @since 2022/6/8
 */
@AllArgsConstructor
@Getter
public enum DictConverterEnum {
    YES_OR_NO_HAVE("publicDictionary", "YesOrNoHave", "yesOrNoHave", "有无"),

    USAGE_TYPE("housingManagement", "housing_a_usage_type", "usageType", "使用类型"),
    LAYOUT("housingManagement", "housing_layout", "layout", "户型"),
    PROPERTY_SOURCE("housingManagement", "housing_property_source", "propertySource", "物业来源"),
    STATUS("housingManagement", "housing_status", "status", "状态"),
    TYPE("housingManagement", "housing_type", "type", "房屋类型"),
    ORIENTATION("housingManagement", "housing_orientation", "orientation", "朝向"),
    WATER("housingManagement", "housing_water", "water", "水"),
    ELECTRIC("housingManagement", "housing_electric", "electric", "电"),

    HAS_LIFT(YES_OR_NO_HAVE, "hasLift", "电梯"),
    HAS_PARK(YES_OR_NO_HAVE, "hasPark", "车位"),
    GAS(YES_OR_NO_HAVE, "gas", "燃气"),
    ;

    // 字典分类编码
    private String classifyCode;
    // 字典编码
    private String code;
    // 字段/变量的名称
    private String field;
    // 字段/变量的注释
    private String fieldName;

    DictConverterEnum(DictConverterEnum dictConverterEnum, String field, String fieldName) {
        this(dictConverterEnum.classifyCode, dictConverterEnum.code, field, fieldName);
    }

}
